<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', 'StaticPagesController@home')->name('home');
Route::get('/help', 'StaticPagesController@help')->name('help');
Route::get('/about', 'StaticPagesController@about')->name('about');
Route::get('signup', 'UsersController@create')->name('signup');
Route::resource('users', 'UsersController');
Route::get('/users/{user}/edit', 'UsersController@edit')->name('users.edit');

Route::get('signup/confirm/{token}', 'UsersController@confirmEmail')->name('confirm_email');

Route::get('login', 'SessionsController@create')->name('login');
Route::post('login', 'SessionsController@store')->name('login');
Route::delete('logout', 'SessionsController@destroy')->name('logout');

Route::resource('statuses', 'StatusesController', ['only' => ['store', 'destroy']]);




Route::get('/event','EventController@index');






Route::get('/es', 'EsController@index');
Route::get('/es-get', 'EsController@get');
Route::get('/es-search', 'EsController@search');
Route::get('/es-deldoc', 'EsController@deleteDocument');
Route::get('/es-delind', 'EsController@deleteIndex');



Route::resource('route','RouteController');
Route::resource('file','PhotoController');

Route::resource('view','api\PostController');



